<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="Untitled-2.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>蘑菇街-首页</title>
<link rel="stylesheet" type="text/css" href="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Css/index.css" />
 


<!--[if IE 6]> 
<script>
function correctPNG() 
{
for(var i=0; i<document.http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img.length; i++)
{
var img = document.http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img[i];
var imgName = img.src.toUpperCase();
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : "";
var imgClass = (img.className) ? "class='" + img.className + "' " : "";
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
var imgStyle = "display:inline-block;" + img.style.cssText;
if (img.align == "left") imgStyle = "float:left;" + imgStyle;
if (img.align == "right") imgStyle = "float:right;" + imgStyle;
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
var strNewHTML = "<span "+ imgID + imgClass + imgTitle + "style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src='" + img.src + "', sizingMethod='scale');\"></span>";
img.outerHTML = strNewHTML;
i = i-1;
}
}
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]--> ​

</head>

<body>
	<div class="top1">
		<div class="top-2">
			<a href=""><div class="logo"></div></a>
			<ul class="deng">
				<?php if($_SESSION['user']['uname']){?>
				<li><a href="">欢迎:&nbsp&nbsp<?php echo $_SESSION['user']['uname'];?>&nbsp&nbsp登录蘑菇街</a></li>
				<li><a href="<?php echo U('Login/out');?>" class='login'>退出</a></li>
				<?php  }else{ ?>
				<li><a href="">注册</a></li>
				<li><a href="<?php echo U('Login/login');?>">登录</a><span>|</span></li>
				<?php }?>
			</ul>
			<div class="sou">
				<form action="">
					<div class="sou_sp"><span>搜商品</span></div>
					<input type="search" name="user_search" placeholder="  秋冬贴心家居服" />
					<div class="sou_tp">
						<div class="sou_tp1"></div>
					</div>
				</form>
			</div>
			<div class="gouwu">
				<div class="car">
					<a href="<?php echo U('Cart/index');?>"><div class="car1"></div></a>
					<div class="car2">
						<p>购物车<span id="numbers"><?php echo $_SESSION['cart']['totalNum'];?></span>件</p>
					</div>
				</div>
				<div class="ding">
					<a href="">我的订单</a>
				</div>
			</div>
		</div>	
	</div>

	<div class="top2">
		<ul class="top2-2">
			<li>
				<div class="li1 baise"><a href="">首页</a></div>
			</li>
			<li>
				<div class="li1"><a href="">服饰</a></div>
			</li>
			<li>
				<div class="li1"><a href="">搭配</a></div>
			</li>
			<li>
				<div class="li1"><a href="">达人</a></div>
			</li>
		</ul>
	</div>

	<div class="lou1">
		<div class="lou-1">
			<div class="menu">
				
				<?php $hd["list"]["c"]["total"]=0;if(isset($category) && !empty($category)):$_id_c=0;$_index_c=0;$lastc=min(1000,count($category));
$hd["list"]["c"]["first"]=true;
$hd["list"]["c"]["last"]=false;
$_total_c=ceil($lastc/1);$hd["list"]["c"]["total"]=$_total_c;
$_data_c = array_slice($category,0,$lastc);
if(count($_data_c)==0):echo "";
else:
foreach($_data_c as $key=>$c):
if(($_id_c)%1==0):$_id_c++;else:$_id_c++;continue;endif;
$hd["list"]["c"]["index"]=++$_index_c;
if($_index_c>=$_total_c):$hd["list"]["c"]["last"]=true;endif;?>

					<ul class="ul2">
						<p><a href="<?php echo U('category',array('cid'=>$c['cid']));?>"><?php echo $c['cat_name'];?></a></p>
						<!-- <li class="li-0"><a class="hongzi" href="">暖冬美裙</a></li> -->
						<?php $hd["list"]["c1"]["total"]=0;if(isset($c['_data']) && !empty($c['_data'])):$_id_c1=0;$_index_c1=0;$lastc1=min(1000,count($c['_data']));
$hd["list"]["c1"]["first"]=true;
$hd["list"]["c1"]["last"]=false;
$_total_c1=ceil($lastc1/1);$hd["list"]["c1"]["total"]=$_total_c1;
$_data_c1 = array_slice($c['_data'],0,$lastc1);
if(count($_data_c1)==0):echo "";
else:
foreach($_data_c1 as $key=>$c1):
if(($_id_c1)%1==0):$_id_c1++;else:$_id_c1++;continue;endif;
$hd["list"]["c1"]["index"]=++$_index_c1;
if($_index_c1>=$_total_c1):$hd["list"]["c1"]["last"]=true;endif;?>

							<li class="li-0"><a href="<?php echo U('category',array('cid'=>$c1['cid']));?>"><?php echo $c1['cat_name'];?></a></li>
						<?php $hd["list"]["c"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
						<!-- <li class="li-0"><a href="">呢外套</a></li> -->
					</ul>
				<?php $hd["list"]["c1"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>				
			</div>

			<ul class="lun">
				<li class="lun_tp lun_tp1"><a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/01.jpg" alt="" /></a></li>
				<li class="lun_tp"><a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/02.jpg" alt="" /></a></li>
				<li class="lun_tp"><a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/03.jpg" alt="" /></a></li>
				<li class="lun_tp"><a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/04.jpg" alt="" /></a></li>
				<li class="lun_tp"><a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/05.jpg" alt="" /></a></li>

				<ul class="anniu">
					<li class="hong"></li>
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
			</ul>

			<ul class="right">
				<li>
					<a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/r1.jpg" alt="" /></a>
					<div class="tp-a"><a href="">3CE漆式染色唇彩</a></div>
				</li>
				<li>
					<a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/r2.jpg" alt="" /></a>
					<div class="tp-a"><a href="">3CE漆式染色唇彩</a></div>
				</li>
				<li class="no_bor">
					<a href=""><img src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Images/img/r3.jpg" alt="" /></a>
					<div class="tp-a"><a href="">3CE漆式染色唇彩</a></div>
				</li>
			</ul>
		</div>
	</div>
	
	<div class="fenge">
		<h2 class="dapei">买手推荐的搭配</h2>
		<!-- <a href="">韩系</a>
		<a href="">欧美</a>
		<a href="">约会</a>
		<a href="">逛街</a>
		<a href="">甜美</a>
		<a href="">通勤OL</a>
		<a href="">减龄学院</a>    -->    
	</div>
	<div class="lou3">
		<?php $hd["list"]["g"]["total"]=0;if(isset($goods) && !empty($goods)):$_id_g=0;$_index_g=0;$lastg=min(1000,count($goods));
$hd["list"]["g"]["first"]=true;
$hd["list"]["g"]["last"]=false;
$_total_g=ceil($lastg/1);$hd["list"]["g"]["total"]=$_total_g;
$_data_g = array_slice($goods,0,$lastg);
if(count($_data_g)==0):echo "";
else:
foreach($_data_g as $key=>$g):
if(($_id_g)%1==0):$_id_g++;else:$_id_g++;continue;endif;
$hd["list"]["g"]["index"]=++$_index_g;
if($_index_g>=$_total_g):$hd["list"]["g"]["last"]=true;endif;?>

		<div class="lou3-1">
				<div class="ren1">
					<a href="<?php echo U('goods',array('gid'=>$g['gid']));?>"><img src="http://localhost/me/12.6/ccl_eshop/Eshop/<?php echo $g['goods_thumb'];?>" alt="" /></a>
					<div class="wenzi">
						<p class="new_p1"><a href="<?php echo U('goods',array('gid'=>$g['gid']));?>"><?php echo $g['goods_name'];?></a></p>
						<p class="new_p2">点击数:<?php echo $g['goods_click'];?></p>
					</div>
				</div>
		</div>
		<?php $hd["list"]["g"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>		
	</div>

	<div class="fen"></div>

	<div class="footer">
		<div class="footer1">
			<div class="yingye">
				<div class="logo2"></div>
				<p>
					

					营业执照注册号：330106000129004

					增值电信业务经营许可证：浙B2-20110349

					ICP备案号：浙ICP备10044327号-3

					©2014 Mogujie.com 杭州卷瓜网络有限公司

				</p>
			</div>

			<ul class="fot1">
				<li><p>公司</p></li>
				<li><a href="">关于我们</a></li>
				<li><a href="">招聘信息</a></li>
				<li><a href="">联系我们</a></li>
				
			</ul>
			<ul class="fot1">
				<li><p>消费者</p></li>
				<li><a href="">帮助中心</a></li>
				<li><a href="">意见反馈</a></li>
				<li><a href="">手机版下载</a></li>
			</ul>
			<ul class="fot1">
				<li><p>商家</p></li>
				<li><a href="">帮助中心</a></li>
				<li><a href="">商家培训</a></li>
				<li><a href="">入驻开放平台</a></li>
			</ul>
			<div class="about">
				<p>权威认证</p>
				<div class="ab_tp"></div>
			</div>
		</div>
	</div>

	
<script src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Js/jquery.min.js" type=text/javascript></script>
<script type="text/javascript" src="http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Index/View/Public/Js/index.js"></script>
</body>
</html>

   
    


    
    
    






       